package  com.zerosky.crm.dao;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Activity;

/**Activity数据接口
 * @author hugy;
 * @since 2017-06-08
 */
public interface ActivityDAO {
	
	/**Activity列表数据接口
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public List<Activity> getActivityList(Map map);

	/**通过主键查找Activity数据接口 
	 * @param id Activity主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public int countActivity(Map map);
	
	/**通过主键查找Activity数据接口 
	 * @param id Activity主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public Activity getActivityById(String id);

	/**新增Activity数据接口
	 * @param Activity 实体对象
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public int addActivity(Activity activity) throws Exception;
	
	/**修改Activity数据接口
	 * @param Activity 实体对象
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public int updateActivity(Activity activity) throws Exception;

	/**通过主键删除Activity数据接口
	 * @param id Activity主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public int deleteActivityById(String id) throws Exception;	
}
